<!-- /* Description for file.
 * 
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    
 * @lastmodified  张海杰2011年0727
 */
 -->

<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
//print_r($customertypes);
?>
<script type="text/javascript">
	function getDelStr() {
		var delArr = $("#f2 :checkbox:checked");
		if(delArr.length==0)
		{
			alert("请选择你要删除的项!");
			return;
		}
		var str = "";
		for(var i=0;i<delArr.length;i++) {
			var del = delArr[i].value;
			str += del;
			str += "/";
		}
		//window.alert(str);
		$("#delStr").val(str);
		//window.alert($("#delStr").val());
		$("#f2").submit();
	}
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Channelmanage');//一级目录
										   echo '>';echo __('Channelmanage');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('contractmanagementlist',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<table width="100%" >
	<tr>
		<td width="50"></td>
		<td width="100">
		<a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/channelmanagemessage/<?php echo $channelmanageid?>">基本信息</a>
		</td>
		<td width="100">
		<a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/linkmanlist/<?php echo $channelmanageid?>">联系人</a>
		</td>
		<td width="100">
		<a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/contractmanagementlist/<?php echo $channelmanageid?>">合同管理</a>
		</td>
		<td></td>
	</tr>
</table>
<?php echo $form->create('Channelmanage',array('action'=>'deletesomecontractmanagement','type'=> 'post','id'=>'f2'));?>
<?php echo $form->hidden('delStr',array('name'=>'id','id'=>'delStr'));?>
<?php echo $form->hidden('channelmanageid',array('name'=>'channelmanageid','id'=>'channelmanageid','default'=>$channelmanageid));?>
<table width="100%"  cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><a onclick=getDelStr()><?php echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0',
		 									'onclick'=>'getDelStr()'));?>批量删除</a>
		 </td>
		 <td width="100"><a href="<?php echo ROOT_WEB_PATH; ?>/channelmanages/addcontractmanagementinit/<?php echo $channelmanageid?>"><?php echo $html->image('add.gif', array('alt' =>  __('Add', true),'border'=>'0'));?>
		 			新增合同</a>
		 </td>
		<td>&nbsp;</td>
	</tr>
</table>
<!-- 项目状态列表 -->
<div id="nav1" style="width:97%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="70px"><?php echo __('Selected');?></th>
		<th ><?php echo __('contractmanagementlist Name');//合同名称?></th>
		<th ><?php echo __('resumespreviousCompany');//公司名称?></th>
		<th ><?php echo __('contractmanagementlist Coat');//合同金额?></th>
		<th ><?php echo __('contractmanagementlist signatory');//签约人?></th>
		<th ><?php echo __('contractmanagementlist datesigned');//签约时间?></th>
		<th ><?php echo __('StartUseTime');//开始时间?></th>
		<th ><?php echo __('EndUseTime');//结束时间?></th>
		<th colspan="2" width="80px;"><?php echo __('Operate') ?></th>
	</tr>
	<!-- Here's where we loop through our $Notes array, printing out post info --> 
	
	<?php 
	foreach ($results as $datas): 
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>
<!-- 批量删除选择 -->				
			<?php echo $form->checkbox($datas['Contractmanagement']['id'], array('value' => $datas['Contractmanagement']['id']));?>
			</td>
			<td title="<?php echo $datas['Contractmanagement']['name'];?>"><?php echo "<a href='<?php echo ROOT_WEB_PATH; ?>/channelmanages/contractmanagementinfo/".$datas['Contractmanagement']['id']."' style='color:blue'>".$datas['Contractmanagement']['name']."</a>"; ?></td>
			<td title="<?php echo $datas['Channelmanage']['otentosan']; ?>"><?php echo "<a href='<?php echo ROOT_WEB_PATH; ?>/channelmanages/channelmanagemessage/".$channelmanageid."' style='color:blue'>".$datas['Channelmanage']['otentosan']."</a>"; ?></td>
			<td title="<?php echo $datas['Contractmanagement']['amount']; ?>">￥<?php echo $datas['Contractmanagement']['amount']; ?></td>
			<td title="<?php echo $datas['Contractmanagement']['signatory']; ?>"><?php echo $datas['Contractmanagement']['signatory']; ?></td>
			<td title="<?php echo $datas['Contractmanagement']['datesigned']; ?>"><?php echo $datas['Contractmanagement']['datesigned']; ?></td>
			<td title="<?php echo $datas['Contractmanagement']['startTime']; ?>"><?php echo $datas['Contractmanagement']['startTime']; ?></td>
			<td title="<?php echo $datas['Contractmanagement']['endTime']; ?>"><?php echo $datas['Contractmanagement']['endTime']; ?></td>
			<td>
			<?php echo $html->link( $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0')), '/channelmanages/delcontractmanagement/'.$datas['Contractmanagement']['id']."/".$channelmanageid, null, 
			__('Are you sure you want to delete', true) .' '. $datas['Contractmanagement']['name'] . '?',array('escape'=>false));  ?> 		
			</td><!--  __('delete', true) 删除、提示 -->
			<td>
			<?php echo $html->link( $html->image('edit.gif', array('alt' =>  __('Edit', true),'border'=>'0')), '/channelmanages/editcontractmanagementinit/'.$channelmanageid."/".$datas['Contractmanagement']['id'], null,null,
			array('escape'=>false));  ?> 	
			</td><!--  __('edit', true) 修改 -->
		</tr> 
	<?php endforeach; ?>  
</table>
</div>

<!-- 项目状态列表 -->

<?php echo $form->end();?>
